<?php

namespace app\index\controller;

use think\Controller;

class Test extends Controller{

    public function index(){
//        umeng_send(47,'标题',"内容");
        $client = new \swoole_client(SWOOLE_SOCK_TCP);
        if (!$client->connect('127.0.0.1', 9502, -1))
        {
            exit("connect failed. Error: {$client->errCode}\n");
        }
        $client->send(input('action'));
        echo $client->recv();

        $client->close();
    }
    public function task(){
        \app\common\model\OrderCheck::task(input('order_id'));
    }
    public function get_mfw_order(){
        $api=new \app\common\model\MfwApi();
        $api->order_detail_get(input('order_id'));
    }
}